package demo.rs;

import com.emc.xcp.services.datasource.domain.Query;
import com.emc.xcp.services.datasource.realtime.rs.RealtimeController;
import demo.domain.TwesDataSourceOutput;
import javax.inject.Inject;
import javax.inject.Named;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller(value = "demo.rs.TwesDataSourceController")
@RequestMapping(value = "/application/demo_vacation_requests", params = "type=demo_twes")
public class TwesDataSourceController extends RealtimeController<TwesDataSourceOutput> {
    public TwesDataSourceController() {
        super(TwesDataSourceOutput.class);
    }

    public Query getQuery(){
        return query;
    }


    @Inject
    @Named(value = "demo_twes")
    private Query query;


}